<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
	<title>用户权限复制</title>
	<%@ include file="/common/meta.jsp" %>
    <%@ include file="/common/import.jsp" %>
	<%@ include file="uct-import.jsp" %>
	
	<script>
		
		var inputForm = '#inputForm';

	$(function(){
		$(inputForm).form({
		    onSubmit:function(){		    	
		    	return $(inputForm).form('validate');
		    },
		    success:function(data){
		    	var result = jQuery.parseJSON(data);
		    	//alert(result.msgObj.actEname);
		    	if(result.isok=='T'){
		    		$.messager.alert('提交结果', '操作成功，'+result.msg, 'info');		    			    		
		    	}else{
		    		$.messager.alert('提交结果', '操作失败：'+result.msg, 'error');
		    	}        
		         
		    }
		});
		
		$('#srcUserId').combobox({
		    url:'${ctx}/uct/local/user-list!select.action?orgId=',
		    valueField:'userId',
		    textField:'userCname',
		    editable:false,
		    required:true
		});
		
		$('#targetUserId').combobox({
		    url:'${ctx}/uct/local/user-list!select.action?orgId=',
		    valueField:'userId',
		    textField:'userCname',
		     editable:false,
		    required:true
		});
	}) ;
		
	</script>
</head>

<body>
<form id="inputForm" name="inputForm" method="post" action="user-right-copy!copy.action">
<table class="datagrid-body" >
			<tr >
				<td class="datagrid-header">源用户</td>
				<td>
				<select id="srcUserId" name="srcUserId" style="width:200px;"></select>	
				</td>
			</tr>
			<tr>
				<td class="datagrid-header">目标用户</td>
				<td>
				<select id="targetUserId" name="targetUserId" style="width:200px;"></select>	
				</td>
			</tr>
			
			<tr>
				<td class="datagrid-header">有效期截止时间</td>
				<td>
				<input class="easyui-datetimebox" id="invalidTime" editable="false" name="invalidTime" value="" class="easyui-validatebox" data-options="required:true" style="width:150px">
				</td>
			</tr>
			
			<tr>
				<td class="datagrid-header"></td>
				<td >	
				<a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="$('#inputForm').submit(); ">提交</a>
				</td>
			</tr>
</form>
</body>
</html>